﻿@{
    ViewBag.Title = "ValidPwd";
}

@section scripts
{
    <link href="~/Scripts/miniui/themes/default/large-mode.css" rel="stylesheet" type="text/css" />       
    <script src="@Url.Content("~/Scripts/shared/share.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/shared/shown.js")" type="text/javascript"></script>    
    <style>
        body {
            font-size:11pt !important;
        }
    </style>
}
<form id="form1" method="post">
        <div name="Base" title="会员资料" style="height:100%;overflow:hidden;margin-top:15px;margin-left:25px;">
            <table style="border-collapse: collapse;">
                <tr>
                    <td colspan="2" height="40px" style="padding-left:10px;">
                        清除积分将不能恢复请谨慎操作，输入当前用户密码确认清除
                    </td>
                </tr>
                <tr >
                    <td width="80px" height ="40px" align="right" style="font-size:11pt;">密码：</td>
                    <td width="260px" height ="40px">
                        <input name="Password" id="Password" class="mini-password" style="width:260px;" value="" TabIndex="1" selectOnFocus="true" onkeypress="presskey"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align:center;" height="40px">
                        <a class="mini-button"   onclick="valid()" style="font-size:12pt;height:25px;width:80px;">确定</a>
                        <a class="mini-button"   onclick="close()" style="font-size:12pt;height:25px;width:80px;">取消</a>
                    </td>
                </tr>
            </table>
        </div>
</form>
<script>
    mini.parse();
    function FormShown() {
        mini.getbyName("Password").focus();
    }

    function presskey() {
        if (event.keyCode == 13)
            valid();
    }
    function valid() {
        var json = '[{"mSystemAppID":"'+parent.window.getSystemAppID()+'","pwd":"'+mini.getbyName("Password").getValue()+'"}]';
        $.post("../Member/ValidPasWd", { mjson: json }, function (data) {
            var ret = mini.decode(data);
            if (ret.status == 1) {
                CloseWindow(1);
            }
            else
                CloseWindow(-1);
        });
    }

    function close() {
        CloseWindow(-2);
    }

    function submitForm() {
        return false;
    }

</script>


